package com.example.j202411.viewmodel;

// ConstellationViewModel.java
import android.app.Application;

import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;

import com.example.j202411.Model.ConstellationResponse;
import com.example.j202411.repository.ConstellationRepository;

public class ConstellationViewModel extends AndroidViewModel {
    private ConstellationRepository constellationRepository;

    public ConstellationViewModel(@NonNull Application application) {
        super(application);
        constellationRepository = new ConstellationRepository();
    }

    public LiveData<ConstellationResponse> getConstellationInfo(String constellation) {
        return constellationRepository.getConstellationInfo(constellation);
    }
}